package com.gxa.p2p.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @author xiangzuo
 *
 * 红包
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

@ApiModel("红包实体")
public class Redpac implements Serializable {

  private Long id;
  @ApiModelProperty(name = "name",value = "红包名称")
  private String name;
  @ApiModelProperty(name = "type",value = "红包类型")
  private String type;
  @ApiModelProperty(name = "expTime",value = "有效期")
  private String expTime;
  @ApiModelProperty(name = "money",value = "金额")
  private Integer money;
  @ApiModelProperty(name = "condition",value = "条件")
  private String condition;
  @ApiModelProperty(name = "colNum",value = "已领取个数")
  private Integer colNum;
  @ApiModelProperty(name = "useNum",value = "已使用个数")
  private Integer useNum;
  @ApiModelProperty(name = "creatTime",value = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date creatTime;

}
